package com.haoyeteng.sxbd.modular.system.warpper;


import java.util.List;
import java.util.Map;

import com.haoyeteng.sxbd.core.base.warpper.BaseControllerWarpper;
import com.haoyeteng.sxbd.core.common.constant.factory.ConstantFactory;
import com.haoyeteng.sxbd.core.util.ToolUtil;


/**
 * 用户管理的包装类
 *
 * @author zhanglixiang
 * @date 2017年2月13日 下午10:47:03
 */
public class AdminWarpper extends BaseControllerWarpper {

    public AdminWarpper(List<Map<String, Object>> list) {
        super(list);
    }

    @Override
    public void warpTheMap(Map<String, Object> map) {
        //map.put("sexName", ConstantFactory.me().getSexName(ToolUtil.toInt(map.get("sex"))));
        map.put("roleName", ConstantFactory.me().getRoleName((String) map.get("roleid")));
        //map.put("deptName", ConstantFactory.me().getDeptName((Integer) map.get("deptid")));
        map.put("statusName", ConstantFactory.me().getStatusName(ToolUtil.toInt(map.get("status"))));
    }

}
